//
//  FloatingView.h
//  FuncFanc
//
//  Created by careate-hubing on 2021/7/2.
//  Copyright © 2021 huhu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "MusicModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface FloatingView : UIView <AVAudioPlayerDelegate>
{
    @private
    UIButton *_openBtn;
        
    UIButton *_playBtn;
    
    UILabel *_songName;
    
    UILabel *_singer;
    
    UIButton *_playOrder;
    
    NSTimer *_timer;
    
    UIButton *_nextBtn; // 下一首
    
    UIButton *_lastBtn; // 上一首
    
    // 音乐播放相关
    AVAudioPlayer *_audioPlayer;
    
    NSMutableArray *_musicList;
    
    NSInteger _currentIndex;
}

+(instancetype)sharedView;

-(void)addMusicModelToPlayListWith:(NSArray <MusicModel *>*)aMusicList;

@end

NS_ASSUME_NONNULL_END
